clc
clear

fileID = fopen('config/road.txt');
Road = cell2mat(textscan(fileID,'(%d%d%d%d%d%d%d)', 'Delimiter',',', 'headerlines', 1));
fclose(fileID); 
fileID = fopen('config/cross.txt');
Cross = cell2mat(textscan(fileID,'(%d%d%d%d%d)', 'Delimiter',',', 'headerlines', 1));
fclose(fileID); 
fileID = fopen('config/car.txt');
Car = cell2mat(textscan(fileID,'(%d%d%d%d%d)', 'Delimiter',',', 'headerlines', 1));
fclose(fileID); 

load('../pop.mat');

Chromosome = pop(6,:);

fitness = traffic_fitness(Chromosome, Road, Car, Cross);
% easyVisual = permute(PositionData,[3 2 1]);  